function[farbstring] = colToStr(farbe)

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Diese Funktion wandelt den Farbwert in einen String um.
%
%   EINGABE
%   farbe... Der Farbwert; Vec3
%   AUSGABE
%   farbstring... Der interpretierte Farbwert als String.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    farbliste = ['rot', 'weiss', 'gelb', 'gruen', 'blau', 'violett', 'tuerkis', 'schwarz'];
    farbtabelle =  [255 0   0   1   3;
                    255 255 255 4   8;
                    255 255 0   9   12;
                    0   255 0   13  17;
                    0   0   255 18  21;
                    255 0   255 22  28;
                    0   255 255 29  35;
                    0   0   0   36  42];
    farbanzahl = length(farbtabelle(:,1));
    distanz = zeros(1,farbanzahl);
    for i = 1:farbanzahl
        %distanz(i) = colorMetric(farbe, farbtabelle(i,1:3));
        distanz(i) = norm(farbe - farbtabelle(i,1:3));
    end
    [wert, index] = min(distanz);
    farbstring = farbliste(farbtabelle(index,4):farbtabelle(index,5));
end